﻿using System.Data;
using VanTaiData;
using VanTaiProperty;

namespace VanTaiBLL
{
    public class TMDoNew_BusinessLogic
    {
        public static TMDoNew_Controller cls = new TMDoNew_Controller();
        #region[GetData]
        public DataTable GetData()
        {
            return cls.GetData();
        }
        public DataTable GetDataDetail(int id)
        {
            return cls.GetDataDetail(id);
        }
        public DataTable GetDataDetailLine(string id)
        {
            return cls.GetDataDetailLine(id);
        }
        public DataTable GetDataDetailLineLog(string id)
        {
            return cls.GetDataDetailLineLog(id);
        }
        public DataTable GetDataDetailEdit(int id)
        {
            return cls.GetDataDetailEdit(id);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool InsertTMDoNew(clsTMDoNewProperty obj)
        {
            return cls.InsertTMDoNew(obj);
        }
        public static bool UpdateTMDoNew(clsTMDoNewProperty obj)
        {
            return cls.UpdateTMDoNew(obj);
        }
        public static bool DeleteTMDoNew(int id)
        {
            cls.DeleteTMDoNew(id);
            return true;
        }
        #endregion

        #region[Search]
        public DataTable Search(string keywords)
        {
            return cls.Search(keywords);
        }
        #endregion
    }
}
